package com.test39_集合应用.vo;

import java.io.Serializable;

/**
 * 权限
 */
public class Privilege implements Serializable {
    private String pid;
    private String title;
    private Role role;

    public Privilege() {
    }

    public Privilege(String pid, String title) {
        this.pid = pid;
        this.title = title;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "【权限】ID = " + this.pid + "、名称 = " + this.title;
    }
}
